import request from '@/utils/request'

// 查询事前上报信息列表
export function listPreReportRecords(query) {
  return request({
    url: '/person/preReportRecords/list',
    method: 'get',
    params: query
  })
}

// 查询事前上报信息详细
export function getPreReportRecords(id) {
  return request({
    url: '/person/preReportRecords/' + id,
    method: 'get'
  })
}

// 新增事前上报信息
export function addPreReportRecords(data) {
  return request({
    url: '/person/preReportRecords',
    method: 'post',
    data: data
  })
}

// 修改事前上报信息
export function updatePreReportRecords(data) {
  return request({
    url: '/person/preReportRecords',
    method: 'put',
    data: data
  })
}

// 删除事前上报信息
export function delPreReportRecords(id) {
  return request({
    url: '/person/preReportRecords/' + id,
    method: 'delete'
  })
}

export function examPreReportRecords(data) {
  return request({
    url: '/person/preReportRecords/examine',
    method: 'put',
    data: data
  })
}

